<div class="results form">
<?php echo $form->create('Result');
		$fio = $abiturient['Abiturient']['lastname'].' '.$abiturient['Abiturient']['firstname'].' '.$abiturient['Abiturient']['surname'];
?>
	<fieldset>
 		<legend><?php __('Изменить данные ФБС для <b>'.$fio.'</b>');?></legend>
	<?php
		echo $form->input('id');
		// echo $form->input('resulttype_id');
		// echo $form->input('subject_id');
		// echo $form->input('abiturient_id');

				echo $form->hidden('abiturient_id', array('value' => $abiturient['Abiturient']['id']));
		
		
		// echo $form->input('score');
		
	?>
		<table border="0" cellspacing="2" cellpadding="2" width="80%">
		  <tr>
		    <td>Дата выдачи сертификата</td>
		    <td><?php echo $form->input('year', array('label' => '')); ?></td>
		  </tr>
		  <tr>
		    <td><b>Тип оценки</b></td>
		    <td><b><?php echo $resulttypes[$this->data['Result']['resulttype_id']]; ?></b></td>
		  </tr>		  
		  <tr>
		    <td>Предмет</td>
		    <td><?php echo $subjects[$this->data['Result']['subject_id']]; ?></td>
		  </tr>
		  <tr>
		    <td>Данные сертификата</td>
		    <td><?php echo $form->input('data', array('label' => '', 'size' => 80)); ?></td>
		  </tr>
		  <tr>
		    <td>Баллы</td>
		    <td><b><?php echo $this->data['Result']['score']; ?></b></td>
		  </tr>	
		  <tr>
		    <td>Баллы ФБС</td>
		    <td><b><?php echo $form->input('fbasescore', array('label' => '')); ?></b></td>
		  </tr>			  	  		  
		</table>
	
	</fieldset>
	<br />
<?php echo $form->end('Сохранить');?>
</div>


<!-- 

<div class="results form">
<?php echo $form->create('Result');?>
	<fieldset>
 		<legend><?php __('Edit Result');?></legend>
	<?php
		echo $form->input('id');
		echo $form->input('resulttype_id');
		echo $form->input('subject_id');
		echo $form->input('abiturient_id');
		echo $form->input('year');
		echo $form->input('data');
		echo $form->input('score');
		echo $form->input('fbasescore');
	?>
	</fieldset>
<?php echo $form->end('Submit');?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Delete', true), array('action' => 'delete', $form->value('Result.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Result.id'))); ?></li>
		<li><?php echo $html->link(__('List Results', true), array('action' => 'index'));?></li>
		<li><?php echo $html->link(__('List Resulttypes', true), array('controller' => 'resulttypes', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Resulttype', true), array('controller' => 'resulttypes', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Subjects', true), array('controller' => 'subjects', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Subject', true), array('controller' => 'subjects', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Abiturients', true), array('controller' => 'abiturients', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Abiturient', true), array('controller' => 'abiturients', 'action' => 'add')); ?> </li>
	</ul>
</div>
 -->
